import service from "../utils/service.ts";

export const login = (loginForm : any) => {
    return service.post('user/login',loginForm, {
        noAuth: true
    });
}
export const getInfo = () => {
    return service.get('user/info');
}

export const register = (loginForm : any) => {
    return service.post('/user/register', loginForm, {
        noAuth: true
    })
}